package com.tulele.vtool.service.impl;

import com.tulele.vtool.mapper.BrandPromotionPayUserInfoMapper;
import com.tulele.vtool.model.BrandPromotionPayUserInfo;
import com.tulele.vtool.service.IBrandPromotionPayUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandPromotionPayUserInfoServiceImpl implements IBrandPromotionPayUserInfoService {

    @Autowired
    private BrandPromotionPayUserInfoMapper brandPromotionPayUserInfoMapper;

    @Override
    public int recordBrandPromotionPayUserInfo(BrandPromotionPayUserInfo brandPromotionPayUserInfo) {
        return brandPromotionPayUserInfoMapper.addBrandPromotionPayUserInfo(brandPromotionPayUserInfo);
    }

    @Override
    public List<BrandPromotionPayUserInfo> getPromotionPayByUserId(String userId) {
        return this.brandPromotionPayUserInfoMapper.getPromotionPayByUserId(userId);
    }
}
